<?php
class RM_Module_Reports extends RM_Module {
    
    public function  __construct() {
        $this->name = 'Reports';
    }

    public function install()
    {
        //TODO: we need to create additional changes in rm_unit_config table - to support extra column in unit list
        //TODO: we need to create new column for every language that installed on core 
    }
    
    public function uninstall()
    {
        //TODO: we need to remove additional changes in rm_unit_config table - to support extra column in unit list
        //TODO: we need to remove new column for every language that installed on core
    }   

    public function getConfigNode()
    {
        return null; // return null to not show the menu item
    }

    public function getNode(){
        $std = new stdClass;

        $std->id = $this->name.'_ListJson_Request';
        $std->text = $this->getName();

        $std->iconCls = 'RM_modules_leaf_icon';
        $std->leaf = 'true';
        return $std;
    }

    public function getAllReports(){
        $model = new RM_Reports();
        return $model->getAll();
    }
}
